@extends('layouts.app')

@section('content')
<div class="container fontSize14">
    <div class="row clear">
    	<p class="col-xs-6"><img src="{{ asset('images/history.png') }}" alt="" width="16" height="16" class="textAlign mr01">历史记录</p>
    	<div class="liHeight bgWhite col-xs-12 textRight">
	    	<span class="col-xs-12 textRight"><a href="javascript:void(0)" class="colorRed">获奖金额<span class="underlineBlack">1000</span></a></span>
    	</div>
    	<div class="hisMenuBox clear mt01">
			<ul class="nav nav-tabs" id="otherInfoTab">
			    <li class="active"><a href="{{url('activity',array('uid'=>Auth::User()->id))}}">全部记录</a></li>
			    <li><a href="{{url('winning',array('uid'=>Auth::User()->id))}}">获奖记录</a></li>
			</ul>
			<div class="tab-content mt05">
			    <div class="tab-pane  col-xs-12 textLeft active pdTop" id="allRecord">
					@foreach($activity as $vo)
				    <div class="tab-list clear bgWhite col-xs-12"  style="margin-bottom:10px">
					    <a href="#" class="colorThree">
					    	<div class="tab-prize-slide ">
					    		<img src="{{ asset('images/prize.png') }}" alt="" width="25" height="25" >
					    	</div>
					    	<div class="tab-prize-slide ">
					    		<img src="{{ asset('images/saber.png') }}" alt="" width="32" height="32" class="textAlign boradius prize-slide">
					    	</div>
					    	<div class="col-xs-9 pdL47 liHeight">{{Auth::User()->name}}</div>
					    	<div class="col-xs-3 textRight liHeight"><?php echo date('Y-m-d',$vo->order->start_time)?></div>
						    <div class="textLeft">
						    	<div class="col-xs-9 pdL47">{{$vo->order->name}}</div>
						    	<div class="col-xs-3 coloStyOragin textRight">jingxingzhong</div>
						    </div>
						</a>
				    </div>
					@endforeach
			    </div>
				<div class="tab-pane  col-xs-12 textLeft pdTop" id="prizeRecord">
				    <div class="tab-list clear bgWhite col-xs-12"  style="margin-bottom:10px">
					    <a href="#" class="colorThree">
					    	<div class="tab-prize-slide ">
					    		<img src="{{ asset('images/prize.png') }}" alt="" width="25" height="25" >
					    	</div>
					    	<div class="tab-prize-slide ">
					    		<img src="{{ asset('images/saber.png') }}" alt="" width="32" height="32" class="textAlign boradius prize-slide">
					    	</div>
					    	<div class="col-xs-9 pdL47 liHeight">小疯子</div>
					    	<div class="col-xs-3 textRight liHeight">2016.11.25</div>
						    <div class="textLeft">
						    	<div class="col-xs-9 pdL47">对对乐活动名称对对乐</div>
						    	<div class="col-xs-3 coloStyOragin textRight">已结束</div>
						    </div>
						</a>
				    </div>
				</div>
			</div>
    	</div>
    </div>
    
    <script>
    $(function() {
        $('#otherInfoTab a:first').tab('show');//初始化显示哪个tab

//        $('#otherInfoTab a').click(function(e) {
//            e.preventDefault();//阻止a链接的跳转行为
//            $(this).tab('show');//显示当前选中的链接及关联的content
//        })
    })
</script>
</div>
@endsection
